package com.iflytek.uoamp.agent.core.agentclient.sync;

import java.util.concurrent.Future;

import com.iflytek.uoamp.agent.core.sender.obj.ResponseData;

/**
 * @ClassName: SyncWriteFuture
 * @Description: 接收同步消息接口
 * @author qinanyuan
 * @date 2017年3月22日 下午9:08:47
 */
public interface WriteFuture<T> extends Future<T> {

    Throwable cause();

    void setCause(Throwable cause);

    boolean isWriteSuccess();

    void setWriteResult(boolean result);

    String requestId();

    T response();

    void setResponse(ResponseData response);

    boolean isTimeout();


}
